package com.atguigu.common.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    SERVICE_ERR(203, "服务异常"),
    DATA_ERR(204, "数据异常"),
    LOGIN_AUTH(208, "未登录"),
    NO_PERMISSION(209, "无权限");

    private int code;
    private String message;

    ResultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
